//
//  JHCharacterObject.m
//  Liberty Voice
//
//  Created by dlios on 15-5-13.
//  Copyright (c) 2015年 ClearLove. All rights reserved.
//

#import "JHCharacterObject.h"

@implementation JHCharacterObject

- (void)dealloc
{
    [_image0 release];
    [super dealloc];
}

- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;

}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"image0"]) {
        self.image0 = value;
    }else if ([key isEqualToString:@"text"]){
        self.text = value;
    }
    
    // 当key未找到 则不赋值
}
// 取值
- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
    
}



@end
